package com.basics.api.response.socket;

import com.basics.api.response.channel.ChannelListData;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


@Data
public class OpenData implements Serializable {

    @ApiModelProperty(value = "初始连接频道列表")
    private List<ChannelListData> channelList;

    @ApiModelProperty(value = "未读消息数量(全部)")
    private Integer allMsgNum;


    public OpenData(){

    }

    public OpenData(List<ChannelListData> channelList,Integer allMsgNum){
        this.channelList = channelList;
        this.allMsgNum = allMsgNum;
    }
}
